import java.util.HashMap;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 98152
 * Date: 2024-11-13
 * Time: 15:21
 */
import java.util.*;

// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Test {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String str1 = in.next();
        in.nextLine();
        String str2 = in.next();
        boolean result = isFirstBoxContainsSecondBox(str1, str2);
        if(result) {
            System.out.println("Yes");
        }else {
            System.out.println("No");
        }
    }
    private static boolean isFirstBoxContainsSecondBox(String str1, String str2) {
        HashMap<Character, Integer> countBox1 = new HashMap<>();
        HashMap<Character, Integer> countBox2 = new HashMap<>();

        int len1 = str1.length();
        for(int i = 0; i < len1; i++) {
            char ball = str1.charAt(i);
            countBox1.put(ball,countBox1.getOrDefault(ball, 0) + 1);
        }

        int len2 = str2.length();
        for(int i = 0; i < len2; i++) {
            char ball = str2.charAt(i);
            countBox2.put(ball,countBox2.getOrDefault(ball, 0) + 1);
        }

        for(Character ball : countBox2.keySet()) {
            int str1Count = countBox1.getOrDefault(ball, 0);
            int str2Count = countBox2.getOrDefault(ball, 0);
            if(str1Count < str2Count) {
                return false;
            }
        }
        return true;
    }
}
